//
//  HeadView.m
//  Test04
//
//  Created by HuHongbing on 9/26/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "HeadView.h"
#import "Utility.h"

@implementation HeadView



- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.open = NO;
        self.backBtn= [UIButton buttonWithType:UIButtonTypeCustom];
        self.backBtn.frame = CGRectMake(0, 0, 320, 29);
        [self.backBtn addTarget:self action:@selector(doSelected) forControlEvents:UIControlEventTouchUpInside];
        [self addSubview:self.backBtn];
        
        UIImageView *imageView=[[UIImageView alloc] initWithFrame:CGRectMake(290, 10, 15, 10)];
        imageView.tag=2000;
        imageView.image=[Utility imageNamed:@"quanziFolder.png"];
        [self addSubview:imageView];

    }
    return self;
}

-(void)doSelected{
    //    [self setImage];
    if (_delegate && [_delegate respondsToSelector:@selector(selectedWith:)]){
     	[_delegate selectedWith:self];
    }
}
@end
